package org.fightingliu.demo.controller;

import org.fightingliu.demo.service.ElasticsearchSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : LiuChao
 * @description : TODO
 * @date : 2025-05-04 14:52:17
 */
@RestController
public class EsController {

    @Autowired
    ElasticsearchSevice elasticsearchSevice;

    @GetMapping("/indices")
    String getIndices() {
        return elasticsearchSevice.getIndices();
    }
}
